home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINWORDS / WINE02BX.ZIP / LISP / MODES / PICTURE.ELC < prev    next >
Text File  |  1993-03-28  |  18KB  |  234 lines

  1. ;;; compiled by @win386 on Sat Mar 13 14:32:46 1993
  2. ;;; from file c:/src/lucid-19.4/lisp/modes/picture.el
  3. ;;; emacs version 19.3 Lucid.
  4. ;;; bytecomp version 2.08; 27-aug-92.
  5. ;;; optimization is on.
  6. ;;; this file uses opcodes which do not exist in Emacs18.
  7.  
  8. (if (and (boundp 'emacs-version)
  9.      (or (and (boundp 'epoch::version) epoch::version)
  10.          (string-lessp emacs-version "19")))
  11.     (error "This file was compiled for Emacs19."))
  12.  
  13. (provide 'picture)
  14. (fset 'move-to-column-force #[(column) "└    !êië    W½ä    j¬ÿ\n    U?¡Æh├U¡ì─╞╟!ê\njê└    !)╚    )ç" [move-to-column column col 9 nil indent-tabs-mode delete-char -1 t zmacs-region-stays] 3 "\
  15. Move to column COLUMN in current line.
  16. Differs from move-to-column in that it creates or modifies whitespace
  17. if necessary to attain exactly the specified column."])
  18. (fset 'picture-end-of-line #[(&optional arg) "½å┴!Syê┬yê├`─êxç" [arg prefix-numeric-value 0 "     " nil] 3 "\
  19. Position point after last non-blank character on current line.
  20. With ARG not nil, move forward ARG - 1 lines first.
  21. If scan reaches end of buffer, stop there without error." "P"])
  22. (fset 'picture-forward-column #[(arg) "└i    \\!ç" [move-to-column-force arg] 3 "\
  23. Move cursor right, making whitespace if necessary.
  24. With argument, move that many columns." "p"])
  25. (fset 'picture-backward-column #[(arg) "└i    Z!ç" [move-to-column-force arg] 3 "\
  26. Move cursor left, making whitespace if necessary.
  27. With argument, move that many columns." "p"])
  28. (fset 'picture-move-down #[(arg) "i┴\n!ê├!)ç" [col picture-newline arg move-to-column-force] 2 "\
  29. Move vertically down, making whitespace if necessary.
  30. With argument, move that many lines." "p"])
  31. (defconst picture-vertical-step 0 "\
  32. Amount to move vertically after text character in Picture mode.")
  33. (defconst picture-horizontal-step 1 "\
  34. Amount to move horizontally after text character in Picture mode.")
  35. (fset 'picture-move-up #[(arg) "└    [!ç" [picture-move-down arg] 2 "\
  36. Move vertically up, making whitespace if necessary.
  37. With argument, move that many lines." "p"])
  38. (fset 'picture-movement-right #[nil "└┴┬\"ç" [picture-set-motion 0 1] 3 "\
  39. Move right after self-inserting character in Picture mode." nil])
  40. (fset 'picture-movement-left #[nil "└┴┬\"ç" [picture-set-motion 0 -1] 3 "\
  41. Move left after self-inserting character in Picture mode." nil])
  42. (fset 'picture-movement-up #[nil "└┴┬\"ç" [picture-set-motion -1 0] 3 "\
  43. Move up after self-inserting character in Picture mode." nil])
  44. (fset 'picture-movement-down #[nil "└┴┬\"ç" [picture-set-motion 1 0] 3 "\
  45. Move down after self-inserting character in Picture mode." nil])
  46. (fset 'picture-movement-nw #[nil "└┴ë\"ç" [picture-set-motion -1] 3 "\
  47. Move up and left after self-inserting character in Picture mode." nil])
  48. (fset 'picture-movement-ne #[nil "└┴┬\"ç" [picture-set-motion -1 1] 3 "\
  49. Move up and right after self-inserting character in Picture mode." nil])
  50. (fset 'picture-movement-sw #[nil "└┴┬\"ç" [picture-set-motion 1 -1] 3 "\
  51. Move down and left after self-inserting character in Picture mode." nil])
  52. (fset 'picture-movement-se #[nil "└┴ë\"ç" [picture-set-motion 1] 3 "\
  53. Move down and right after self-inserting character in Picture mode." nil])
  54. (fset 'picture-set-motion #[(vert horiz) "\n─┼\n╞ª╞ªT╟_╚\\\\╔¢@\"\n╦╠ !ê═╬!ç" [vert picture-vertical-step horiz picture-horizontal-step format "Picture:%s" 2 3 1 (nw up ne left none right sw down se) mode-name set-buffer-modified-p buffer-modified-p message ""] 5 "\
  55. Set VERTICAL and HORIZONTAL increments for movement in Picture mode.
  56. The mode line is updated to reflect the current direction."])
  57. (fset 'picture-move #[nil "└    !ê┬ !ç" [picture-move-down picture-vertical-step picture-forward-column picture-horizontal-step] 2 "\
  58. Move in direction of  picture-vertical-step  and  picture-horizontal-step."])
  59. (fset 'picture-motion #[(arg) "└    \n_!ê├     _!ç" [picture-move-down arg picture-vertical-step picture-forward-column picture-horizontal-step] 3 "\
  60. Move point in direction of current picture motion in Picture mode.
  61. With ARG do it that many times.  Useful for delineating rectangles in
  62. conjunction with diagonal picture motion.
  63. Do \\[command-apropos]  picture-movement  to see commands which control motion." "p"])
  64. (fset 'picture-motion-reverse #[(arg) "└    [!ç" [picture-motion arg] 2 "\
  65. Move point in direction opposite of current picture motion in Picture mode.
  66. With ARG do it that many times.  Useful for delineating rectangles in
  67. conjunction with diagonal picture motion.
  68. Do \\[command-apropos]  picture-movement  to see commands which control motion." "p"])
  69. (fset 'picture-self-insert #[(arg) "┴V¡ÜS┬iT!ê├─!êcê─uê╞ ê╟¬aç" [arg 0 move-to-column-force delete-char -1 last-input-char picture-move nil zmacs-region-stays] 2 "\
  70. Insert this character in place of character previously at the cursor.
  71. The cursor then moves in the direction you previously specified
  72. with the commands picture-movement-right, picture-movement-up, etc.
  73. Do \\[command-apropos]  picture-movement  to see those commands." "p"])
  74. (fset 'picture-clear-column #[(arg) "`ië\n\\─ !ê`|êè     ]j,ç" [opoint original-col arg target-col move-to-column-force] 3 "\
  75. Clear out ARG columns after point without moving." "p"])
  76. (fset 'picture-backward-clear-column #[(arg) "└    [!ç" [picture-clear-column arg] 2 "\
  77. Clear out ARG columns before point, moving back over them." "p"])
  78. (fset 'picture-clear-line #[(arg) "½ò┴!┬!ê├─V½â¬é[!ç┼╞!½è╟`╚yê`\"ê¬ê╔`╩ê`\"ê╩ë ç" [arg prefix-numeric-value kill-line newline 0 looking-at "[     ]*$" kill-ring-save 1 kill-region nil zmacs-region-stays] 3 "\
  79. Clear out rest of line; if at end of line, advance to next line.
  80. Cleared-out line text goes into the kill ring, as do
  81. newlines that are advanced over.
  82. With argument, clear out (and save in kill ring) that many lines." "P"])
  83. (fset 'picture-newline #[(arg) "┴W½âyç┴V¡ö┬êm½à├ ê¬â─uêSë¬hç" [arg 0 nil newline 1] 3 "\
  84. Move to the beginning of the following line.
  85. With argument, moves that many lines (up, if negative argument);
  86. always moves to the beginning of a line." "p"])
  87. (fset 'picture-open-line #[(arg) "è└ê┴\n!)ç" [nil open-line arg] 2 "\
  88. Insert an empty line after the current line.
  89. With positive argument insert that many lines." "p"])
  90. (fset 'picture-duplicate-line #[nil "è└yê`┴┬!ê`{─yê c*ç" [0 picture-newline 1 contents -1] 3 "\
  91. Insert a duplicate of the current line, below it." nil])
  92. (defvar picture-tab-chars "!-~" "\
  93. *A character set which controls behavior of commands
  94. \\[picture-set-tab-stops] and \\[picture-tab-search].  It is NOT a
  95. regular expression, any regexp special characters will be quoted.
  96. It defines a set of \"interesting characters\" to look for when setting
  97. (or searching for) tab stops, initially \"!-~\" (all printing characters).
  98. For example, suppose that you are editing a table which is formatted thus:
  99. | foo        | bar + baz | 23  *
  100. | bubbles    | and + etc | 97  *
  101. and that picture-tab-chars is \"|+*\".  Then invoking
  102. \\[picture-set-tab-stops] on either of the previous lines would result
  103. in the following tab stops
  104.         :     :     :     :
  105. Another example - \"A-Za-z0-9\" would produce the tab stops
  106.   :          :    :     :
  107.  
  108. Note that if you want the character `-' to be in the set, it must be
  109. included in a range or else appear in a context where it cannot be
  110. taken for indicating a range (e.g. \"-A-Z\" declares the set to be the
  111. letters `A' through `Z' and the character `-').  If you want the
  112. character `\\' in the set it must be preceded by itself: \"\\\\\".
  113.  
  114. The command \\[picture-tab-search] is defined to move beneath (or to) a
  115. character belonging to this set independent of the tab stops list.")
  116. (fset 'picture-set-tab-stops #[(&optional arg) "è└\n½å├─!¬▒┼╞!╚Q    ╩yê` └ê╠     ═#½è╬└wêi    B¬m    ¼ê╧╨╞!\"ê*    ╤    GS    8T╥\"    ½ì    @╘Iê    Aë¼s╒!+ç" [nil tabs arg default-value tab-stop-list "[     ]+[" regexp-quote picture-tab-chars "]" regexp 0 bol re-search-backward t "     " error "No characters in set %s on this line." make-string 32 blurb 58 message] 5 "\
  117. Set value of  tab-stop-list  according to context of this line.
  118. This controls the behavior of \\[picture-tab].  A tab stop
  119. is set at every column occupied by an \"interesting character\" that is
  120. preceded by whitespace.  Interesting characters are defined by the
  121. variable  picture-tab-c